home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
-
- on mouseWithin me
- nameOfSprite = (the member of sprite spriteNum).name
- howLong = nameOfSprite.length
- if chars(nameOfSprite, howLong - 4, howLong) = " norm" then
- WhoToPutHere = chars(nameOfSprite, 1, howLong - 4) & "over"
- sprite(spriteNum).member = member(WhoToPutHere)
- cursor(200)
- if sprite(50).visible = 0 then
- sprite(50).visible = 1
- end if
- end if
- sprite(50).locH = the mouseH
- sprite(50).locV = the mouseV
- updateStage()
- end
-
- on mouseDown me
- nameOfSprite = (the member of sprite spriteNum).name
- howLong = nameOfSprite.length
- if chars(nameOfSprite, howLong - 4, howLong) = " over" then
- nameOfSprite = (the member of sprite spriteNum).name
- howLong = nameOfSprite.length
- WhoToPutHere = chars(nameOfSprite, 1, howLong - 4) & "down"
- sprite(spriteNum).member = member(WhoToPutHere)
- set the member of sprite 50 to member("handDown")
- updateStage()
- end if
- end
-
- on mouseUp me
- nameOfSprite = (the member of sprite spriteNum).name
- howLong = nameOfSprite.length
- if chars(nameOfSprite, howLong - 4, howLong) = " down" then
- nameOfSprite = (the member of sprite spriteNum).name
- howLong = nameOfSprite.length
- WhoToPutHere = chars(nameOfSprite, 1, howLong - 4) & "over"
- sprite(spriteNum).member = member(WhoToPutHere)
- sprite(50).visible = 0
- set the member of sprite 50 to member("hand")
- cursor(-1)
- updateStage()
- end if
- end
-
- on mouseLeave me
- nameOfSprite = (the member of sprite spriteNum).name
- howLong = nameOfSprite.length
- if (chars(nameOfSprite, howLong - 4, howLong) = " over") or (chars(nameOfSprite, howLong - 4, howLong) = " down") then
- nameOfSprite = (the member of sprite spriteNum).name
- howLong = nameOfSprite.length
- WhoToPutHere = chars(nameOfSprite, 1, howLong - 4) & "norm"
- sprite(spriteNum).member = member(WhoToPutHere)
- sprite(50).visible = 0
- set the member of sprite 50 to member("hand")
- cursor(-1)
- updateStage()
- end if
- end
-